#!/usr/bin/env python
# -*- coding: utf-8 -*- #   
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import cgi
import datetime
from google.appengine.api import users
import Cookie,urllib
from django.utils import simplejson
from google.appengine.api import urlfetch

from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp.util import run_wsgi_app
import time
from google.appengine.ext import db
import SiteType
class ShowProfile(webapp.RequestHandler):
	def get(self):
		user=SiteType.Header(self)
		#key=self.request.get("key")
		#if key=="":
		#	members=db.GqlQuery("SELECT *  FROM Member WHERE username=:user1 ",user1=user)
		#	mem=members[0]
		#else:
		#	mem=db.get(key)
		#self.response.out.write(u"""<div id="main"> 
#<div id="left"> 
#<h1>%s</h1>"""%mem.name_chs)
		#self.response.out.write(u"%s"%mem.universities+u"<br>%s届"%mem.year_of_grad+u"%s"%mem.class_in_school)
		#
		#self.response.out.write(u"""</div></div>""")
	
		SiteType.Ender(self)
def main():
  application = webapp.WSGIApplication([('/profile',ShowProfile)],
                                       debug=True)
  util.run_wsgi_app(application)

if __name__ == '__main__':
  main()
